#include "Tile.h"


Tile::Tile(std::string name,int ID,sf::Image * img)
{
	sprite = new sf::Sprite();
	this->name = name;
	this->ID = ID;
	sprite->SetImage(*img);
}


Tile::~Tile(void)
{
	delete sprite;
}


sf::Sprite * Tile::getDrawSprite(float x,float y,float scale)
{
	sprite->SetPosition(x,y);
	sprite->SetScale(scale,scale);
	return sprite;
}




